package jsyf.oa.entity.report;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by Administrator on 2018/5/4 0004.
 */
@Entity
@Table(name = "t_sys_user_2_report", schema = "oa", catalog = "")

public class User2ReportEntity extends BaseEntity implements Serializable {
    private String userId;
    private String moduleId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("USER_ID", this.getUserId());
        obj.put("MODULE_ID", this.getModuleId());

        return obj;
    }

    @Override
    public String getTableName() {
        return "t_sys_user_2_report";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("USER_ID", "userId");
        obj.put("MODULE_ID", "moduleId");

        return obj;
    }
}
